-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/platform metering config #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds comprehensive metering configuration support across all platform types (AWS, Azure, AKS, GCP, Kubernetes, OpenShift) in the Terraform provider. The changes enable users to configure platform-level metering settings including processing configurations, access credentials, and platform-specific metering parameters.
Key changes:
- Added metering configuration schemas for all supported platform types with processing options (timeline compaction and raw data deletion)
- Refactored platform configuration types into separate files for better code organization
- Updated secret obfuscation handling to support metering credentials alongside replication credentials
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| internal/provider/schema_utils.go | Modified meshProjectRoleAttribute to accept a computed parameter for flexible usage across resource and data source schemas |
| internal/provider/platform_resource_schema_*.go | New files defining platform-specific schemas for Kubernetes, GCP, Azure, AWS, and AKS with metering support |
| internal/provider/platform_resource.go | Added shared meteringProcessingConfigSchema function and removed platform schemas moved to separate files |
| internal/provider/platform_data_source.go | Added metering configuration schemas for data sources and updated meshProjectRoleAttribute calls |
| internal/provider/platform_resource_obfuscationhandling.go | Extended secret obfuscation handling to support metering credentials |
| internal/provider/landingzone_resource.go | Updated meshProjectRoleAttribute calls with computed parameter |
| internal/modifiers/platformtypemodifier/validate_single_platform.go | Minor formatting improvements to error messages |
| docs/resources/platform.md | Updated documentation with metering configuration examples and reorganized schema sections |
| docs/data-sources/platform.md | Added metering configuration documentation for data sources |
| client/platform*.go | Refactored platform configuration structs into separate files with proper typing |
| .github/.copilot-instructions.md | Added guidelines for pointer and omitempty usage in data structures |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3a232b4 to
4fa8d52
Compare
9397b29 to
0b717b0
Compare
j0g3sc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I followed all the replication and metering config fields again and compared them to the kotlin definition.
Did a few tests locally as well and found no issue.
No description provided.